package com.excellence.service.impl;

import com.excellence.service.FileToPhotoService;
import com.excellence.utils.SaveFilesPath;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 沈秉璋
 * @ClassName fileToPhotoServiceImpl
 * @Description TODO
 * @date 2024/4/23 18:19
 * @Version 1.0
 */
@Service
public class FileToPhotoServiceImpl implements FileToPhotoService {
    @Override
    public String fileToPhoto(MultipartFile file) {
        List<MultipartFile> files = new ArrayList<>();
        files.add(file);
        return SaveFilesPath.saveFilesPath(files);
    }
}
